import xlrd
from graphviz import Digraph

def read_xls(filename):
    wb = xlrd.open_workbook(filename)

    


dot = Digraph(comment='The Round Table')

dot.attr('edge', fontname='DengXian')
dot.attr('node', fontname='DengXian')

dot.node('A', '主要嫌疑人')
dot.node('B', 'Sir Bedevere the Wise')
dot.node('L', 'Sir Lancelot the Brave')


dot.node('X', label='''<<TABLE BORDER="0">
 <TR>
   <TD><IMG SCALE="FALSE" SRC="app.png" /></TD>
   <TD>这个是一个插入图片的示例</TD>
 </TR>
</TABLE>>''')

dot.edges(['AB', 'AL'])
dot.edge('B', 'L', constraint='false', label='关系名称')
dot.edge('L', 'X')

dot.render('round-table-img', format='png')

#print(dot.source)